using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[RequireComponent(typeof(AudioSource))]
public class Game : MonoBehaviour
{
    FileSystem fileSystem;

    Track[] tracks;

    AudioSource player;

    private void Awake()
    {
        player = GetComponent<AudioSource>();
        fileSystem = new FileSystem();
    }

    public float GetPlayerTime()
    {
        return 1f * player.timeSamples / player.clip.frequency;
    }

    public Track GetTrackByID(int id)
    {
        return tracks[id];
    }
}
